<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title><<<.page_title>>></title>

    <script src="/static/home_static/js/jquery/jquery-2.1.4.min.js" type="text/javascript"></script>
    <script src="/static/home_static/layui/layui.js" type="text/javascript"></script>
    <script src="/static/home_static/js/index/index.js" type="text/javascript"></script>
    <script src="/static/home_static/js/index/freezeheader.js" type="text/javascript"></script>
    <script src="/static/home_static/layui/lay/modules/layer.js" type="text/javascript"></script>
    <script src="/static/home_static/js/index/sliders.js" type="text/javascript"></script>
    <script src="/static/home_static/js/index/html5.js" type="text/javascript"></script>
    <link rel="stylesheet" href="/static/home_static/layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="/static/home_static/layui/css/modules/layer/default/layer.css"/>
    <link rel="stylesheet" href="/static/home_static/css/global.css"/>
    <script type="text/javascript">
        $(function(){
            var oLi = document.getElementById("tab").getElementsByTagName("li");
            var oUl = document.getElementById("ms-main").getElementsByTagName("div");
            for(var i = 0; i < oLi.length; i++)
            {
                oLi[i].index = i;
                oLi[i].onmouseover = function ()
                {
                    for(var n = 0; n < oLi.length; n++) oLi[n].className="";
                    this.className = "cur";
                    for(var n = 0; n < oUl.length; n++) oUl[n].style.display = "none";
                    oUl[this.index].style.display = "block"
                }
            }
        });
    </script>
    <!--
    -->
</head>
<body>
<div class="layui-header header">
    <div class="main">
        <ul class="layui-nav layui-nav-left" lay-filter="filter">
            <a class="logo" href="/" title="Fly">xiaobing</a>
            <li class="layui-nav-item <<<if eq .controller_name "MainController" >>>layui-this<<<end>>>  nav-left">
                <a href="/">首页</a>
            </li>
            <<<range $index, $elem := .article_cat_list>>>
            <li class="layui-nav-item <<<if eq $.cat_id $elem.Id >>>layui-this<<<end>>>">
                <a href="/article?cat_id=<<<$elem.Id>>>"><<<$elem.CatName>>></a>
            </li>
            <<<end>>>
            <li class="layui-nav-item">
                <a href="/admin">管理后台</a>
            </li>
        </ul>
    </div>
</div>